﻿using System;

namespace Smart.Windows.Navigation
{
    /// <summary>
    /// ビュー属性
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
    public class ViewAttribute : Attribute
    {
        private object id;

        /// <summary>
        /// ビューID
        /// </summary>
        public object Id
        {
            get { return this.id; }
            set { this.id = value; }
        }

        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="id">ビューID</param>
        public ViewAttribute(object id)
        {
            this.Id = id;
        }
    }
}